package com.example.myworkers.service.imp;/*
 *编写者：段光映
 */

import com.example.myworkers.dao.IParty;
import com.example.myworkers.model.Employee;
import com.example.myworkers.model.Party;
import com.example.myworkers.service.PartyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PartyServiceImpl implements PartyService {
    @Autowired
   private IParty partyMapper;
    @Override
    public int insertParty(Party party){
        int partyvalue=0;
        return partyvalue;
    }
    @Override
    public int deleteParty(Party party){
        int partyvalue=0;
        return partyvalue;
    }
    @Override
    public List<Party> selectAllParty(Party party){
        List<Party> getP=partyMapper.selectAllParty(party);
        return getP;
    }
    @Override
    public  Party selectParty(Party party){
       Party party1=new Party();
        if(party.getParno()!=0){
           party1=partyMapper.selectParty(party);
        }
        return party1;
    }
    @Override
    public int updateParty(Party party){
        int partyvalue=0;
        return partyvalue;
    }

}
